package com.ysd.entity;

public class Newscategory { // 实体类,私有属性 + getset方法 + (带参/无参)构造方法 + toString
	private int newsCategoryId;
	private String newsCategoryName;

	public int getNewsCategoryId() {
		return newsCategoryId;
	}

	public void setNewsCategoryId(int newsCategoryId) {
		this.newsCategoryId = newsCategoryId;
	}

	public String getNewsCategoryName() {
		return newsCategoryName;
	}

	public void setNewsCategoryName(String newsCategoryName) {
		this.newsCategoryName = newsCategoryName;
	}

	public Newscategory(int newsCategoryId, String newsCategoryName) {
		super();
		this.newsCategoryId = newsCategoryId;
		this.newsCategoryName = newsCategoryName;
	}

	public Newscategory() {
		super();
	}

	@Override
	public String toString() {
		return "Newscategory [newsCategoryId=" + newsCategoryId + ", newsCategoryName=" + newsCategoryName + "]";
	}

}
